#include<stdio.h>
int getsum(int* a,int sz)
{
	int ret=0;
	for(int i=0;i<sz;i++)
		ret+=a[i];
	return ret;
}
int main()
{
int a[]={1,2,3,4,5,6,7,8,9};
int sum=getsum(a,sizeof(a)/sizeof(a[0]));
printf("%d\n",sum);
return 0;
}
